﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections;
using System.Collections.Generic;

namespace AdruSharpUT
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            var dict = new Dictionary<int, Action<int>>();
            for (var i = 0; i < 10; i++) 
            {
                dict.Add( i , DoSomeJob);
            }
            foreach (var job in dict) 
            {
                job.Value(job.Key);
            }
        }

        public void DoSomeJob( int i) 
        {
            Console.WriteLine("this is job" + i.ToString());
        }
    }
}
